from qcloud_cos import CosConfig
from qcloud_cos import CosS3Client
from django.conf import settings

import base

secret_id = settings.SECRET_ID  # 替换为用户的 secretId
secret_key = settings.SECRET_KEY  # 替换为用户的 secretKey

region = 'ap-chengdu'  # 替换为用户的 Region
config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key)
client = CosS3Client(config)

response = client.create_bucket(
    Bucket='test-1320997346',
    ACL="public-read"  # private  /  public-read / public-read-write
)


